<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/wondershare/js/jquery.js"></script> 
<script src="/wondershare/js/faq_comment.js"></script> 
<script src="/wondershare/js/jquery.cvbox.min.js"></script> 
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../images/unti.js"></script>

<title>留言<{$tile}>页</title>

<script>
function check_submit()
{
 if($('#co_new_name').val().replace(/(^\s*)|(\s*$)/g, "")=="")
  {
      alert('标题（文章标题）！');
      $("#co_new_name").focus();
      return false;
  }
  if($('#co_content').val().replace(/(^\s*)|(\s*$)/g, "")=="")
  {
      alert('留言内容不能为空！');
      $("#co_content").focus();
      return false;
  }
  return true;
}

</script>
</head>

<body  onload="set_rating_show(<{$comment_info.com_type}>)">
<h1>

<span class="action-span1">

<a href="/wondershare/faq_comment.php?action=index&web_type=<{$web_type}>" style="text-decoration:underline">评论管理</a> 
</span>
<span id="search_id" class="action-span1"> - 评论<{$tile}> </span>
<div style="clear:both"></div>
</h1>
<div id="tabbar-div">
      <p>
     
      </p>
    </div>
<div id="tabbody-div"  style=" width:1100px;">
      <form  name="theForm" method="post" action="/wondershare/faq_comment.php?action=add_edit&web_type=<{$web_type}>" onsubmit="return check_submit();">
        <table align="center" width="90%" id="general-table">
          <tbody>
		  <tr>
            <td class="label">标题（文章标题）：</td>
            <td> <input type="text" value="<{$comment_info.title}>"  name='co_new_name' id='co_new_name'  style="width:350px;"  disabled="disabled"/>
			   <input type="hidden" value="<{$comment_info.title}>"  name='article_name' id='article_name'  style="width:350px;" />
			  <input type="button" value="  选择文章 "  onclick="getfaqlist('get_faq_info')"/>
			<input type="hidden" value="<{$comment_info.new_id}>"  name='co_new_id' id='co_new_id'/> </td>
          </tr>
		  
		   <tr id="tr_co_rating" style=" display:none;">
            <td class="label">视频星级评论</td>
            <td>
			<select name="co_rating" style="width:350px;" >
	        <option value="1" <{if $comment_info.com_rating == 1}> selected="selected" <{/if}> >一星</option>
	        <option value="2" <{if $comment_info.com_rating == 2}> selected="selected" <{/if}>  >二星</option>
			<option value="3" <{if $comment_info.com_rating == 3}> selected="selected" <{/if}>  >三星</option>
			<option value="4" <{if $comment_info.com_rating == 4}> selected="selected" <{/if}>  >四星</option>
			<option value="5" <{if $comment_info.com_rating == 5}> selected="selected" <{/if}>  >五星</option>
	       </select>
			 </td>
          </tr>
		  <tr id="tr_co_useful" style=" display:none;">
            <td class="label">评论是否有用</td>
            <td>
			<select name="co_useful" style="width:350px;" id="co_useful">
	        <option value="0" <{if $comment_info.com_useful == 0}> selected="selected" <{/if}> >无用</option>
	        <option value="1" <{if $comment_info.com_useful == 1}> selected="selected" <{/if}>  >有用</option>
	       </select>
			 </td>
          </tr>
		  
		  <tr>
            <td class="label">审核状态</td>
            <td>
			<select name="co_status" style="width:350px;" id="co_status">
	        <option value="0" <{if $comment_info.com_status == 0}> selected="selected" <{/if}> >未审核</option>
	        <option value="1" <{if $comment_info.com_status == 1}> selected="selected" <{/if}>  >已审核</option>
	       </select>
			</td>
          </tr>
		  <tr>
		  
		  <tr>
            <td class="label">评论人：</td>
            <td> <input type="text" value="<{$comment_info.com_name}>"  name='co_name' id='co_name'  style="width:350px;"  />

          </tr>
		  
		   <tr>
            <td class="label">评论人邮箱：</td>
            <td> <input type="text" value="<{$comment_info.com_email}>"  name='co_email' id='co_email'  style="width:350px;"  />
            </td>
          </tr>

		  <tr>
            <td class="label">评论内容：</td>
  			<td>
			  <textarea cols="48" rows="6" id="co_content" name="co_content"><{$comment_info.com_content|escape}></textarea>
              <span class="require-field">*</span></td>
          </tr>        

        </tbody></table>

        <div  style="margin-left:380px; margin-top:20px;">
          <input type="hidden"  name="comment_id" value="<{$comment_info.com_id}>">
	      <input type="hidden" name="co_type" id="co_type" value="<{$comment_info.com_type}>" />
          <input type="hidden" name="web_info" id="web_info" value="<{$web_info}>" />
          <input type="submit"   class="button" value="<{$tile}> " name="sub_from">
          <input type="reset" class="button" value=" 重置 ">
        </div>
        <input type="hidden" value="<{$form_act}>" name="act" >
      
      </form>
    </div>
</body>
</html>